import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Random;

public class SelectGroup {

    public static void main(String[] args) throws IOException {

        HashSet<Integer> set = new HashSet<>();
        Random random = new Random();


        while(true)
        {
            if(set.size() == 22) {
                break;
            }

            int index = random.nextInt(21);

            if(set.contains(index+1))
            {
                continue;
            }

            set.add(index+1);
            System.out.println(index+1);
        }


    }

}
